#!/bin/bash
#Aware Corporation Ltd.
#Linux Backup version 1.0 Aware Corporation LTD (awarecorp@gmail.com)
#Last modified: 11-06-2011 


#Variables
name="www"					#Backup name
source_data=('/var/www/html')			#Paths to backup
source_exclude=()				#Paths to exclude
transport_target=('10.10.10.10' 'linuxbackups')	#Hostname or IP
transport_path="/${HOSTNAME}"			#Target directory on share.
transport_mount_path="/mnt/backup/"		#Local mountpoint for transport
						#If left empty the files will be created
						#in the share root.
transport_type="cifs"				#Supported CIFS, FTP, SCP
transport_options=",rw,uid=root,file_mode=0600,dir_mode=0700"
						#These vary depending on transport type

transport_username="backups"			#Username used for transport
transport_password="YOURPASSWORD"		#Password used for transport

compression="gzip"				#None, Gzip, Bzip

full=('Sun')
diff=()
incr=('Mon' 'Tue' 'Wed' 'Thu' 'Fri' 'Sat')
						#Days to perform backup. Valid values:
						#Mon, Tue, Wed, Thu, Fri, Sat, Sun
						#Full backups have higher priority.
						#Days can be left out.
purge=15					#Purge backups after number of days.

#Plug-in variables
sql_username=""					#MySQL username
sql_password=""					#MySQL password
sql_out_file=""					#File used to MySQL backup.
sql_databases=('*')				#If '*' all databases will be backed up.
sql_options=""					#Additional options for MySQLDump

function presqldump {				#Action to perform prior to mysqldump
						#Enter your command below this line

  return
}

function postsqldump {				#Action to perform after mysqldump
						#Enter your command below this line

  return
}

function preaction {				#Action to perform prior to backup
						#Enter your command below this line

  return
}

function postaction {				#Action to perform after backup
						#Enter your command below this line

  return
}
